import request from '@/utils/request';

export async function addHouseResource(params) {
  return request('/haoke/house/resources', {
    method: 'POST',
    // 这里设置期望类型
    headers: {"Content-Type": "application/json; charset=utf-8"},
    // 这里要转为 JSON 字符串
    body: JSON.stringify(params)
  });
}

export async function updateHouseResource(params) {
  return request('/haoke/house/resources', {
    method: 'PUT',
    headers: {"Content-Type": "application/json; charset=utf-8"},
    body: JSON.stringify(params)
  });
}